package com.chinatsp.onlineapp.presenter;

import tsp.cn.http.BaseIDao;
import tsp.cn.http.HttpConfig;
import tsp.cn.http.interfac.INetResult;
import tsp.cn.http.tools.T;
import android.content.Context;

import com.chinatsp.onlineapp.base.Config;
/**
 * 限行规则
 */
public class LimitRuleDao extends BaseIDao {

	private Context mContext;
    public LimitRuleDao(Context context, INetResult iNetResult) {
        super(context, iNetResult);
        this.mContext = context;
    }

    /**
     * 得到结果，对结果进行处理
     *
     * @param result
     * @param requestCode
     */
    @Override
    public void onRequestSuccess(String result, int requestCode) {
    	T.showShort(mContext, result);
    }

    /**
     * 热门城市
     */
    public void getLimitNum() {

        StringBuilder strBuilder = new StringBuilder();
        strBuilder.append(HttpConfig.appendString());
        strBuilder.append(Config.API_LIMIT_RULE);

        getRequest(strBuilder.toString(), Config.CODE_LIMIT_RULE);
    }
}
